﻿using FinalYear.OpticalFlow;
using FinalYear.OpticalFlow.Classes;
using FinalYear.OpticalFlow.Properties;
using System;
using System.Windows.Forms;

namespace FinalYear
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Navigator model = new Navigator();

            try
            {
                Application.Run(new iNavigate(model));
            }
            finally
            {
                if (model != null)
                {
                    model.Dispose();
                }

                Settings.Default.Save();
            }
        }
    }
}